﻿using XYAC.Framework.WohuaMesExtend.IHI.IHI.Models;

namespace XYAC.Framework.WohuaMesExtend.IHI.Extensions
{
    internal class SpecInfo_IHIHashComparer : IEqualityComparer<SpecInfo_IHI>

    {
        public bool Equals(SpecInfo_IHI x, SpecInfo_IHI y)
        {
            if (x == null || y == null)
                return false;
            return x.Hash == y.Hash;
        }

        public int GetHashCode(SpecInfo_IHI obj)
        {
            return obj.Hash.GetHashCode();
        }
    }
}
